﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Collections;
using Light.Framework.Model;

namespace Light.Framework.Contract
{
    /// <summary>
    /// 用户接口（支持登录操作，包含用户名,登录密码,权限，角色）
    /// </summary>
    public interface IUser
    {
        /// <summary>
        /// 唯一标识
        /// </summary>
        string ID { get; set; }

        /// <summary>
        /// 编号
        /// </summary>
        string SN { get; set; }

        /// <summary>
        /// 用户名
        /// </summary>
        string Name { get; set; }

        /// <summary>
        /// 真实名称
        /// </summary>
        string RealName { get; set; }

        /// <summary>
        /// 登录密码
        /// </summary>
        string Password { get; set; }

        /// <summary>
        /// 电话号码
        /// </summary>
        string Phone { get; set; }

        /// <summary>
        /// 是否包含权限
        /// </summary>
        /// <param name="rightCode">权限代码</param>
        /// <returns></returns>
        bool HasRight(string rightCode);

        /// <summary>
        /// 登录后显示的名称
        /// </summary>
        string DisplayName { get; }

        /// <summary>
        /// 登录Token值
        /// </summary>
        string Token { get; set; }
    }
}
